package com.projet.glb2r.Activite;


import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

import com.projet.glb2r.R;

public class ActiviteParametre extends TabActivity  {
	private TabHost tabHost;
	private TabSpec tabSpec;
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.parametre);
        
        Intent intent = new Intent(this, ActiviteEntreprise.class);
        Intent intent1 = new Intent(this, ActiviteClient.class);
        Intent intent2 = new Intent(this, ActiviteListProduit.class);
        tabHost = getTabHost();
	        
        tabSpec = tabHost.newTabSpec("Entreprise").setIndicator("Entreprise").setContent(intent);
        tabHost.addTab(tabSpec);
        
        tabSpec = tabHost.newTabSpec("Client").setIndicator("Client").setContent(intent1);
        tabHost.addTab(tabSpec);
        
        tabSpec = tabHost.newTabSpec("Produit").setIndicator("Produit").setContent(intent2);
        tabHost.addTab(tabSpec);
        

    }
}